package com.example.demo.client.evt.cssmqry.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Desc
 * @Author zhengmf
 * @Date 2019-12-23 15:05:16
 */
@ApiModel
public class HasPermissionOrNotEvt implements Serializable {
    private static final long serialVersionUID = 2724542460108735540L;
    @ApiModelProperty("用户登录名")
    private String loginName;
    @ApiModelProperty("用户ID")
    private Long userId;
    @ApiModelProperty(value = "权限码",notes = "多个用,隔开，多个权限码是OR关系")
    @NotBlank
    private String permissionCode;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public HasPermissionOrNotEvt() {
    }

    public HasPermissionOrNotEvt(@NotBlank String loginName, @NotBlank String permissionCode) {
        this.loginName = loginName;
        this.permissionCode = permissionCode;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    @Override
    public String toString() {
        return "HasPermissionOrNotEvt{" +
            "loginName=" + loginName +
            ", permissionCode='" + permissionCode + '\'' +
            '}';
    }
}
